package com.ccp.dev.workflow.model;

import java.util.Objects;

/**
 * ClassDescribe:
 * 用于接收流程回退跳转节点信息的实体类
 *
 * @author :wangcheng
 * Date: 2020-01-20
 */
public class ActNode {
    /**
     * 节点id
     */
    private String nodeId;

    /**
     * 节点名称
     */
    private String nodeName;

    public ActNode() {
    }

    public ActNode(String nodeId, String nodeName) {
        this.nodeId = nodeId;
        this.nodeName = nodeName;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ActNode actNode = (ActNode) o;
        return Objects.equals(nodeId, actNode.nodeId) &&
                Objects.equals(nodeName, actNode.nodeName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nodeId, nodeName);
    }
}
